package com.zxy.ider.ehome.View;

import android.app.Dialog;
import android.content.Context;
import android.view.Gravity;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;

/**
 * Created by ider-eric on 2017/7/11.
 */

public class DownLoadDialog extends Dialog {

    public DownLoadDialog(Context context, int layout, int style){
        super(context, style);
        setContentView(layout);
        Window window = getWindow();
        WindowManager.LayoutParams params = window.getAttributes();
        window.setGravity(Gravity.TOP);
        params.y = 60;
        params.alpha = 0.8f;
        window.setAttributes(params);

    }

}
